package guicomponents;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: kclark
 * Date: 5/26/11
 * Time: 8:19 AM
 */
public class PanelButtonMenu extends JPanel {
    public PanelButtonMenu() {
        setLayout(new GridLayout(0,13, 3, 3));
        add(createAddButton());
        add(createDeleteButton());
        add(createEditButton());

    }

    private JButton createAddButton() {
        Icon addIcon = new ImageIcon("C:/dev folder/Sound Board/src/main/java/guicomponents/icons/add.png");
        JButton buttonAdd = new JButton(addIcon);
        buttonAdd.setMinimumSize(new Dimension(80, 80));
        buttonAdd.setPreferredSize(new Dimension(25, 30));
        buttonAdd.setToolTipText("Add Person");
        
        return (buttonAdd);
    }

    private JButton createDeleteButton() {
        Icon addIcon = new ImageIcon("C:/dev folder/Sound Board/src/main/java/guicomponents/icons/delete.gif");
        JButton buttonDelete = new JButton(addIcon);
        buttonDelete.setMaximumSize(new Dimension(80, 80));
        buttonDelete.setPreferredSize(new Dimension(25, 30));
        buttonDelete.setToolTipText("Delete Person");

        return (buttonDelete);

    }

    private JButton createEditButton() {
        Icon addIcon = new ImageIcon("C:/dev folder/Sound Board/src/main/java/guicomponents/icons/edit.gif");
        JButton buttonEdit = new JButton(addIcon);
        buttonEdit.setMaximumSize(new Dimension(80, 80));
        buttonEdit.setPreferredSize(new Dimension(25, 30));
        buttonEdit.setToolTipText("Edit Person");

        return (buttonEdit);

    }
}

